﻿using SEIPropertyDataService.Entity.Converters;
using System;
using System.Text.Json.Serialization;

namespace SEIPropertyDataService.Entity.ViewModels
{
    /// <summary>
    /// 用户信息vm
    /// </summary>
    public class VM_User
    {
        /// <summary>
        /// id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 公司/组织机构
        /// </summary>
        public string Organization { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 角色id
        /// </summary>
        public string RoleId { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        [JsonConverter(typeof(CustomDateTimeConverter))]
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 查询匹配度
        /// </summary>
        [JsonIgnore]
        public int MatchSC { get; set; }
    }
}
